#!/bin/bash
#test script for using gnome-screensaver to disable monitor

export DISPLAY=:0

set | grep DBUS > /home/user/.DBUS_temp
source /home/user/.DBUS_temp
export DBUS_SESSION_BUS_ADDRESS

if [ -n $1 ]
then
	if [ $1 = "stop" ]
	then
		gnome-screensaver-command -a
	elif [ $1 = "start" ]
	then
		gnome-screensaver-command -d
	else
		echo "INVALID INPUT"
		echo "USEAGE: displayctrl start|stop"
	fi
else
	echo "INVLAID INPUT"
	echo "USEAGE: displayctrl start|stop"
fi
